package com.meng.system.service.impl.auth;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meng.system.domain.vo.SysDeptVO;
import com.meng.system.mapper.auth.SysDeptMapper;
import com.meng.system.service.auth.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门管理 服务实现类
 * </p>
 *
 * @author Xu Meng
 * @since 2021-01-14
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDeptVO> implements SysDeptService {

    @Autowired
    private SysDeptMapper sysDeptMapper;

    /**
     * 获取部门树
     */
    @Override
    public List<SysDeptVO> getDeptTree() {
        List<SysDeptVO> depts = sysDeptMapper.getDeptTree();

        return depts;
    }
}
